<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="rightfangge">
		<div class="tongyi_top">
  			<span class="tongyibiaoti">综合统计</span><a href="###" class="gengduob" onclick="skipToWfsx1();">更多</a>
		</div>
        <div class="tongyi_zhongjiantu1">
        	<img id="imggc1" onerror="javascript:this.src='${ctx}/images/dfsdfw2ww.jpg'" 
				style="width: 100%;height: 100%" onclick="showDetailPic(this.src)">
		</div>
        <table id="InfoTable1" border="0" cellpadding="0" cellspacing="0" width="100%" class="dashujutable" style="margin:12px 0 18px;padding: 0 10px;">
        	<thead>
                 <tr>
                   <td height="26" align="center" class="dashujutable_top">单位名称</td>
                   <td align="center" class="dashujutable_top">已采集数</td>
                   <td align="center" class="dashujutable_top">已审核数</td>
                   <td align="center" class="dashujutable_top">待申请下载审核数</td>
                   <td align="center" class="dashujutable_top">需重新采集数</td>
                 </tr>
             </thead>
             <tbody>
             </tbody>
       </table>
</div>
<script type="text/javascript">
//查询违法筛选信息
function gcwfDiv(tjld){
	$.ajax({
		type:'POST',
		url:'${ctx}/wfsx/findGcwfBySbxh.htm',
		data:{
			pageSize:5,
	        page:1,
			tjld:tjld
		},
		dataType:'json',
		success:function(data, textStatus, jqXHR){
			if(data.rows.length>0){
				$("#imggc1").attr("src",data.rows[0].tpurl);
			}
			//组装表格
			createAllContent1(data.rows);	
		},
		error:function(XMLHttpRequest, textStatus, errorThrown){			
		}
	});
}
//创建表格内容
function createAllContent1(data){
	$("#InfoTable1 tbody").empty();//清空原始数据
	var tableBodyStr = "";
	if(data==""){
		tableBodyStr+="";
	}else{
		$.each(data,function(i,n){
			tableBodyStr+="<tr onclick=\"checkTp1(this)\" tpurl=\""+n.tpurl+"\">";
			if(i%2==0){
				tableBodyStr+="<td height=\"28\" class=\"dashujutable_nr1\"  align=\"center\">"+n.jgsjStr+"</td>";
				tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\">"+n.zt+"</td>";
				tableBodyStr+="<td class=\"dashujutable_nr1\" align=\"center\" style=\"width: 238px\">"+n.wfms+"</td>";
			}else{
				tableBodyStr+="<td height=\"28\" class=\"dashujutable_nr2\"  align=\"center\">"+n.jgsjStr+"</td>";
				tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\">"+n.zt+"</td>";
				tableBodyStr+="<td class=\"dashujutable_nr2\" align=\"center\" style=\"width: 238px\">"+n.wfms+"</td>";
			}
			tableBodyStr+="</tr>";
		});
	}	
	$("#InfoTable1 tbody").html(tableBodyStr);
	//表格变颜色	
	$(".dashujutable>tbody>tr").hover(
	  function () {
	    $(this).children(".dashujutable_nr1").css({background:"#cee4ff"});
	  },
	  function () {
		 $(this).children(".dashujutable_nr1").css({background:"#ffffff"});
	  }
	);
	$(".dashujutable>tbody>tr").hover(
	  function () {
	    $(this).children(".dashujutable_nr2").css({background:"#cee4ff"});
	  },
	  function () {
		 $(this).children(".dashujutable_nr2").css({background:"#f1f1f1"});
	  }
	);
}
//跳转页面
function skipToWfsx1(){
	//var sbxh=$(id).attr("sbxh");
	parent.addTab("违法筛选","${ctx }/wfsx/wfsx.htm"); 
}
//查看图片
function checkTp1(obj){
	$("#imggc1").attr("src",$(obj).attr("tpurl"));
}
//跳转页面
function checkWfsx(id){
	var gcbh=$(id).attr("gcbh");
	parent.addTab("违法筛选详情","${ctx}/wfsx/findGcwfBySbxh2.htm?gcbh="+gcbh);

}
</script>
